package com.basketball.service.impl;

import com.basketball.entity.Remark;
import com.basketball.repository.RemarkRepository;
import com.basketball.service.RemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class RemarkServiceImpl implements RemarkService {
    @Autowired
    private RemarkRepository remarkRepository;
    @Override
    public List<Remark> getAllRemarks() {
        return remarkRepository.findAll();
    }
}
